﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace XML_Programming_Assignment.Class
{
    class AllFormClass
    {
        //creating form objects to get access from each other files throught the solution
        public static FrmCheckStocksLevel formCheckStockLevel = new FrmCheckStocksLevel();
        public static FrmReadQuotation formReadQuotation = new FrmReadQuotation();
        public static FrmDefault formDefault = new FrmDefault();
        public static FrmRFQValidation formRFQValidation = new FrmRFQValidation();

        //ArrayLists
        //=======================
        // 1. ProductArrayList
        public static ArrayList ProductList = new ArrayList();
        // 2. ArrayList for storing error messages of XML validation
        public static ArrayList validateErrorList = new ArrayList();


        //Intialize the program to show low stock level products in CheckStocksLevel form
        public static void pupulateAllList()
        {
            //populate Product list
            ProductList = DBManager.LowProductStockRetrieve();
        }
    }
}
